package abc.ynny.dome04;

import javax.lang.model.element.Name;

public class FruitTest {
    public static void main(String[] args) {
        Fruit f = new Fruit();
        f.setName("苹果");
        f.setArea("陕西");
        f.setPrice(10.0);
        System.out.println(f.toString());
        Fruit f1 = new Fruit();
        f1.setName("香蕉");
        f1.setArea("中国");
        f1.setPrice(10);
        System.out.println(f1.toString());
        Fruit f2 = new Fruit();
        f2.setName("葡萄");
        f2.setArea("新疆");
        f2.setPrice(10);
        System.out.println(f2.toString());
    }
}
